<html>
<head><meta charset="utf-8"><title>Why do we call `item` for `clean::StrippedItem` · rustdoc · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/index.html">rustdoc</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/Why.20do.20we.20call.20.60item.60.20for.20.60clean.3A.3AStrippedItem.60.html">Why do we call `item` for `clean::StrippedItem`</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="225436283"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/266220-rustdoc/topic/Why%20do%20we%20call%20%60item%60%20for%20%60clean%3A%3AStrippedItem%60/near/225436283" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Nixon Enraght-Moony <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/Why.20do.20we.20call.20.60item.60.20for.20.60clean.3A.3AStrippedItem.60.html#225436283">(Feb 06 2021 at 23:59)</a>:</h4>
<p>I'm working on <a href="https://github.com/rust-lang/rust/issues/80664">#80664</a>, and think that the problem is <a href="https://github.com/rust-lang/rust/blob/9a1d6174c925f54c923599e29b09d6855e6b3a78/src/librustdoc/formats/renderer.rs#L95">here</a>, where even for a <code>StrippedItem</code>, all the items it it are still documented, causing a collision, </p>
<p>However, when I <a href="https://github.com/aDotInTheVoid/rust/commit/a6049c4679640175ab161f6a23f8a8d19093bdd3#diff-46f011cf734f3de35eddca150990366cc41bd8eaf3945a241b2a2f79c5bb77eaL98-R101">removed it</a>, I get a few test failures</p>
<div class="codehilite"><pre><span></span><code>failures:
    [rustdoc] rustdoc/inline_local/glob-extern.rs
    [rustdoc] rustdoc/inline_local/glob-private.rs
    [rustdoc] rustdoc/redirect-const.rs
    [rustdoc] rustdoc/redirect-rename.rs
    [rustdoc] rustdoc/redirect.rs
</code></pre></div>
<p>I'm not entirely sure why this is needed, and the <a href="https://gist.github.com/aDotInTheVoid/8e400400ed266560d06497497271a0b9">diff</a> seems unrelated to the change.</p>
<p>So I'm woundering why in html, rustdoc <code>item</code>s contents of stripped modules?</p>



<a name="230048880"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/266220-rustdoc/topic/Why%20do%20we%20call%20%60item%60%20for%20%60clean%3A%3AStrippedItem%60/near/230048880" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Nixon Enraght-Moony <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/Why.20do.20we.20call.20.60item.60.20for.20.60clean.3A.3AStrippedItem.60.html#230048880">(Mar 12 2021 at 15:36)</a>:</h4>
<p>Oppened <a href="https://github.com/rust-lang/rust/issues/83055">#83055</a> which does this, but only for json</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>